
@model InvoiceProject.Models.Customer

@* This partial view defines form fields that will appear when creating and editing entities *@

   

   

        <li data-role="fieldcontain">
            @Html.HiddenFor(model => model.DateModified)
        </li>

        <li data-role="fieldcontain">
            @Html.HiddenFor(model => model.UserModified)
        </li>


   

        <li data-role="fieldcontain">
            @Html.LabelFor(model => model.FirstName)
            @Html.TextBoxFor(model => model.FirstName)
            @Html.ValidationMessageFor(model => model.FirstName)
        </li>


   

        <li data-role="fieldcontain">
            @Html.LabelFor(model => model.LastName)
            @Html.TextBoxFor(model => model.LastName)
            @Html.ValidationMessageFor(model => model.LastName)
        </li>


   

        <li data-role="fieldcontain">
            @Html.LabelFor(model => model.Email)
            @Html.TextBoxFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </li>







<div class="editor-label">
    Business
</div>
<div class="editor-field">
    @Html.DropDownListFor(model => model.BusinessId, ((IEnumerable<InvoiceProject.Models.Business>)ViewBag.PossibleBusinesses).Select(option => new SelectListItem {
        Text = (option == null ? "None" : option.Name), 
        Value = option.Id.ToString(),
        Selected = (Model != null) && (option.Id == Model.BusinessId)
    }), "Choose...")
    @Html.ValidationMessageFor(model => model.BusinessId)
</div>
